package offer;

import java.util.Arrays;

public class offer_0003 {
    public int findRepeatNumber(int[] nums) {
        int len=nums.length;
        Arrays.sort(nums);
        for(int i=1;i<len;++i){
            if(nums[i]==nums[i-1]) return nums[i];
        }
        return 0;
    }
}
